#!/usr/bin/env python3.3

from euler import isPrime

akt=3
for i in range(1,10001):
  while not isPrime(akt):
    akt+=2
  akt+=2
print(akt-2)
